(define-module (etc-symlinks)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix build-system trivial)
  #:use-module (guix gexp))

;;;
;;; Should be a shepherd service! There is a service type or something
;;; that does just this, at activation...
;;;
(define-public (etc-symlinks)
  (package
    (name "etc-symlinks")
    (version "0.1")
    (source "/home/thomas/guixsd/dotfiles/etc/connman.conf")
    (build-system trivial-build-system)
    (arguments
     '(#:use-modules ((guix build utils))
       #:builder
       (begin
         (use-modules (guix build utils))
         (let ((conf-dir "/etc/connman"))
           (mkdir-p conf-dir)
           (copy-file source)
           (string-append conf-dir "/" "main.conf")))))
    (synopsis "files to go into /etc/")
    (description "some files to go into /etc/ specificly connmans configuration")
    (license license:gpl3+)
    (home-page "localhost")))
